<style>
    .el-scrollbar__wrap {
        margin-bottom: 0 !important;
    }
</style>
<script src="/component/element/organcascader/public/static/js/cascader.js"></script>
<input type="text" id="<?php echo $id ?? $name ?>" name="<?php echo $name ?>" value="<?php echo isset($value) && $value ? $value : 0 ?>" autocomplete="off" class="layui-input">

<script>
    layui.use(function() {


        var layCascader = layui.layCascader;
        var el_orgcascaderdata_<?php echo $name ?> = '<?php echo $orgs ?>';
        var el_orgcascaderdata_<?php echo $name ?>_obj = eval("(" + el_orgcascaderdata_<?php echo $name ?> + ")");
        var layCascader_<?php echo $name ?> = layui.layCascader;
        var el_orgcascader_<?php echo $name ?> = layCascader({
            elem: '#<?php echo $id ?? $name ?>',
            filterable: true,
            value: <?php echo isset($value)  && $value ? $value : 0 ?>,
            options: el_orgcascaderdata_<?php echo $name ?>_obj,
            clearable: true,
            props: {
                multiple: <?php echo isset($polymorphic) && ($polymorphic == 3 || $polymorphic == 5) ? 'true' : 'false' ?>,
                value: 'id',
                label: 'title',
                checkStrictly: true,
            }
        });


    });
</script>